import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
import { AppSettings } from '../../shared/config/app-settings';

@Injectable({
  providedIn: 'root'
})
export class CustomerService {

constructor(private httpClient: HttpClient) { }

loadPropertyList(): Observable<any> {
  return this.httpClient.get<Array<any>>(`${AppSettings.mock_base}/customer/customer-all-property.json`,{
    withCredentials: true,
    params: new HttpParams().set('mock','true'),
    headers: new HttpHeaders().set('Content-Type','application/json')
  });
}

}
